#!/usr/local/bin/python

import sys

from Bio import SeqIO

for index, record in enumerate(SeqIO.parse(open(sys.argv[1]), "genbank")) :
  print "index %i, ID = %s, length %i, with %i features" \
    % (index, record.id, len(record.seq), len(record.features))
  for ref in record.annotations["references"] : print ref.authors
